<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'inventario-form',
	'enableAjaxValidation'=>false,
)); ?>


<div class="row">
 <?php echo $form->labelEx($model,'fechai'); ?>
 <?php
 $this->widget('zii.widgets.jui.CJuiDatePicker', array(
 'model'=>$model,
 'attribute'=>'fechai',
 //'value'=>$model->fechai,
 'language' => 'es',
 'htmlOptions' => array('readonly'=>"readonly"),
 
 'options'=>array(
 'autoSize'=>true,
 //'defaultDate'=>$model->fechai,
 'dateFormat'=>'dd-mm-yy',
 'buttonImage'=>Yii::app()->baseUrl.'/images/calendar.png',
 'buttonImageOnly'=>true,
 'buttonText'=>'Fecha',
 'selectOtherMonths'=>true,
 'showAnim'=>'slide',
s 'showOn'=>'button',
 'showOtherMonths'=>true,
 'changeMonth' => 'true',
 'changeYear' => 'true',
 ),
 )); ?>
 <?php echo $form->error($model,'fechai'); ?>
 </div>

<?php $this->endWidget(); ?>

</div><!-- form -->